Optimal. Leaf size=61 \[ \frac {a \sec ^2(e+f x)}{2 f}+\frac {a \log (\cos (e+f x))}{f}+\frac {b \sec ^5(e+f x)}{5 f}-\frac {b \sec ^3(e+f x)}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4138, 1802} \[ \frac {a \sec ^2(e+f x)}{2 f}+\frac {a \log (\cos (e+f x))}{f}+\frac {b \sec ^5(e+f x)}{5 f}-\frac {b \sec ^3(e+f x)}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1802
Rule 4138
Rubi steps
\begin {align*} \int \left (a+b \sec ^3(e+f x)\right ) \tan ^3(e+f x) \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {\left (1-x^2\right ) \left (b+a x^3\right )}{x^6} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\operatorname {Subst}\left (\int \left (\frac {b}{x^6}-\frac {b}{x^4}+\frac {a}{x^3}-\frac {a}{x}\right ) \, dx,x,\cos (e+f x)\right )}{f}\\ &=\frac {a \log (\cos (e+f x))}{f}+\frac {a \sec ^2(e+f x)}{2 f}-\frac {b \sec ^3(e+f x)}{3 f}+\frac {b \sec ^5(e+f x)}{5 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 59, normalized size = 0.97 \[ \frac {a \left (\tan ^2(e+f x)+2 \log (\cos (e+f x))\right )}{2 f}+\frac {b \sec ^5(e+f x)}{5 f}-\frac {b \sec ^3(e+f x)}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 59, normalized size = 0.97 \[ \frac {30 \, a \cos \left (f x + e\right )^{5} \log \left (-\cos \left (f x + e\right )\right ) + 15 \, a \cos \left (f x + e\right )^{3} - 10 \, b \cos \left (f x + e\right )^{2} + 6 \, b}{30 \, f \cos \left (f x + e\right )^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.98, size = 126, normalized size = 2.07 \[ \frac {a \left (\tan ^{2}\left (f x +e \right )\right )}{2 f}+\frac {a \ln \left (\cos \left (f x +e \right )\right )}{f}+\frac {b \left (\sin ^{4}\left (f x +e \right )\right )}{5 f \cos \left (f x +e \right )^{5}}+\frac {b \left (\sin ^{4}\left (f x +e \right )\right )}{15 f \cos \left (f x +e \right )^{3}}-\frac {b \left (\sin ^{4}\left (f x +e \right )\right )}{15 f \cos \left (f x +e \right )}-\frac {b \cos \left (f x +e \right ) \left (\sin ^{2}\left (f x +e \right )\right )}{15 f}-\frac {2 b \cos \left (f x +e \right )}{15 f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 51, normalized size = 0.84 \[ \frac {30 \, a \log \left (\cos \left (f x + e\right )\right ) + \frac {15 \, a \cos \left (f x + e\right )^{3} - 10 \, b \cos \left (f x + e\right )^{2} + 6 \, b}{\cos \left (f x + e\right )^{5}}}{30 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.39, size = 167, normalized size = 2.74 \[ \frac {2\,a\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^8+\left (-6\,a-4\,b\right )\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6+\left (6\,a-\frac {4\,b}{3}\right )\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4+\left (-2\,a-\frac {4\,b}{3}\right )\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+\frac {4\,b}{15}}{f\,\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^{10}-5\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^8+10\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6-10\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4+5\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2-1\right )}-\frac {2\,a\,\mathrm {atanh}\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\right )}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.98, size = 82, normalized size = 1.34 \[ \begin {cases} - \frac {a \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {a \tan ^{2}{\left (e + f x \right )}}{2 f} + \frac {b \tan ^{2}{\left (e + f x \right )} \sec ^{3}{\left (e + f x \right )}}{5 f} - \frac {2 b \sec ^{3}{\left (e + f x \right )}}{15 f} & \text {for}\: f \neq 0 \\x \left (a + b \sec ^{3}{\relax (e )}\right ) \tan ^{3}{\relax (e )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________